#include "MatrixTest.h"

void TestIntMatrix()
{
	for (size_t x = 1; x != 10; ++x)
		for (size_t y = 1; y != 10; ++y)
		{
			Matrix<int> tmp(x, y);
			int k(0);
			for (int i = 0; i != x; ++i)
			{
				for (int j = 0; j != y; ++j)
				{
					tmp.at(i, j) = k++;
				}
			}
			k = 0;
			for (int i = 0; i != x*y; ++i)
			{
				HANDYTEST_ASSERT(tmp.at(i) == k++);
			}
		}
}